﻿@model ZhongheCms.Models.GswViewTieba
@{
    Layout = "~/Views/Shared/_LayoutWebsite.cshtml";
    string retUrl = "/SunJob/TiebaDesc/" + Model.Id;
        
}
@section head
{
     <link href="/assets/css/error.css" rel="stylesheet" />
     <script src="/assets/js/jquery.validate.min.js"></script>
    <script src="/assets/js/jquery.validate.unobtrusive.min.js"></script>
     <link href="/assets/sunjob/css/table.css" rel="stylesheet" />    
    <link href="/assets/sunjob/css/board.css" rel="stylesheet" />
    <link rel="stylesheet" href="/kindeditor/themes/default/default.css" />
      <script charset="utf-8" src="/kindeditor/kindeditor-min.js" type="text/javascript"></script>
    <script charset="utf-8" src="/kindeditor/lang/zh_CN.js" type="text/javascript"></script>
    <script type="text/javascript">
        KindEditor.ready(function (K) {

            var editor2 = K.create('#content', {
                cssPath: '/kindeditor/plugins/code/prettify.css',
                uploadJson: '/kindeditor/upload_json.ashx',
                fileManagerJson: '/kindeditor/file_manager_json.ashx',
                items: [
						'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
						'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
						'insertunorderedlist', '|', 'emoticons', 'image', 'link'],


            });

        });
        $(function () {
            $("#valiCode").bind("click", function () {
                this.src = "/GsnService/GetValidateCode?time=" + (new Date()).getTime();
            });

        });
    </script>
     
}
  <div class="fix gWrapper">
        <div class="breakcrumb">
            <a href="/">首页</a>&nbsp;&gt;&nbsp;
            <a href="/SunJob/Tieba">贴吧交友</a>
        </div>
        <!--广告位-->
       @* <div class="advImgBox mb15">
            <a href="" target="_blank"><img src="img/cfd041571150638dc11aeda9264d9a6d.jpg" border="0" width="1200" height="90" alt=""></a>
        </div>*@
        <div id="borad">
    
	<!--body begin -->
	<div class="title" style="margin:0px">
	主题 : @Model.Title	</div>
            <style>
               
            </style>

		<table border="0" cellspacing="0" cellpadding="0" class="post_tb" >
		    <tbody>
		        <tr>
		            <td valign="top" class="left">
		                <div class="photo"><img alt="@Model.MemberName" src="@Model.MemberPic" width="120" height="120"></div>
		                <p><a style="text-align:left" href="#" target="_blank" class="blue">@Model.MemberName</a></p> 
		                <p>@Model.SchoolName</p> 
		            </td>
		            <td valign="top" class="right" style="text-align:left">
		                <div class="post_info">
		                    <span class="c" style="color:red">@Model.MemberName&nbsp;发表于：@Model.PubDate.ToShortDateString() <span>&nbsp;</span> @Model.PubTime</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		                    <span class="fRight"style="text-align:right">
		                        @*	<a href="#reply" class="blue">回复</a>*@
		                    </span>
		                </div>
		                <div class="clear"></div>
		                <div class="c">@Html.Raw(Model.PubContent)</div>
			
		
		            </td>
		        </tr>
                 @foreach (var item in Model.TiebaReplies)
                 {
                      <tr>
		            <td valign="top" class="left">
		                <div class="photo"><img alt="@item.MemberName" src="@item.MemberPic" width="120" height="120"></div>
		                <p><a style="text-align:left" href="#" target="_blank" class="blue">@item.MemberName</a></p> 
		                <p>@item.SchoolName</p> 
		            </td>
		            <td valign="top" class="right" style="text-align:left">
		                <div class="post_info">
		                    <span class="c" style="color:red">@item.MemberName&nbsp;回复于：@item.ReplyDate.ToShortDateString() <span>&nbsp;</span>@item.ReplyTime</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		                    <span class="fRight"style="text-align:right">
		                        @*	<a href="#reply" class="blue">回复</a>*@
		                    </span>
		                </div>
		                <div class="clear"></div>
		                <div class="c">@Html.Raw(item.ReplyContent)</div>
			
		
		            </td>
		        </tr>
                 }
		    </tbody></table>
            
                        
    
 
	<div class="title">添加回复</div>
    <a name="reply" id="reply"></a>
    <div class="new_post_form">
    	
        <form name="newpost" method="post" action="/SunJob/TiebaReply/@Model.Id" >
       
            <textarea name="content" cols="80" rows="8" id="content"></textarea>
            <p>
		 @if (Session["loginstate"] != null && Session["loginstate"].ToString() == "ok")
   {
                                <button type="submit" name="replysubmit" id="fastpostsubmit" class="btn_qr130" value="replysubmit" tabindex="5"><span>写好了，发布</span></button>
   }
   else
   {
                                <span> 请您先<a href="/SunJob/SignIn/0?returnUrl=@retUrl">登录</a>再发帖</span>
   } 
                </p>
        </form>
    </div>
</div>
        <!--此处为diy内容-->
    </div>
